package com.erytech.linktalk.web.client;

import com.erytech.linktalk.web.client.datasource.RoomDataSource;
import com.erytech.linktalk.web.client.dataview.ClientMainView;
import com.google.gwt.core.client.EntryPoint;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ClientEntryPoint implements EntryPoint {

	public void onModuleLoad() {
		String roomId = GwtSystem.getProperty("roomId");
		if (roomId == null) {
			roomId = "default@localhost";
		}
		RoomDataSource roomDS = new RoomDataSource(roomId);
		ClientMainView clientMainView = new ClientMainView(roomDS);
		clientMainView.showLogin();
//		clientMainView.showRoom();
		clientMainView.initWindow();
	}

}
